package com.maiji.cloud.response.login;

import java.util.Date;
import java.util.List;
import com.maiji.cloud.entities.login.Label;
import com.maiji.cloud.entities.login.NutrientContentEntity;
import com.maiji.cloud.response.shopingmall.GoodsResData;
import com.maiji.cloud.utils.ShareInfoEnum;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@NoArgsConstructor
@Data
@Accessors(chain = true)
public class FoodMaterialResData {

	@ApiModelProperty(value = "主键id")
	private String uuId;

	@ApiModelProperty(value = "热量")
	private String hot; // 热量

	@ApiModelProperty(value = "收藏数")
	private Integer count; // 收藏数

	@ApiModelProperty(value = "是否被收藏 0:否，1：是")
	private Integer isCollection ;

	@ApiModelProperty(value = "食材名称")
	private String name;

	@ApiModelProperty(value = "食材别名")
	private String alias;

	@ApiModelProperty(value = "描述")
	private String description;

	@ApiModelProperty(value = "注意事项")
	private String remark;

	@ApiModelProperty(value = "分类ID")
	private String typeLabelId;

	@ApiModelProperty(value = "级联分类")
	private String cascaderStr;

	@ApiModelProperty(value = "插入时间")
	private Date inTime;

	@ApiModelProperty(value = "食材图片")
	private UploadImageResData imgData;

	@ApiModelProperty(value = "食材详情")
	private String detailText;

	@ApiModelProperty(value = "标签[]")
	private List<Label> labelList;

	@ApiModelProperty(value = "营养成分[]")
	private List<NutrientContentEntity> nutrientContentEntityList;

	@ApiModelProperty(value = "商品图片")
	private String imgUrl; // 图片

	@ApiModelProperty(value = "Web地址")
	private String webUrl;

	@ApiModelProperty(value = "分享地址")
	private String shareUrl;

	@ApiModelProperty(value = "小程序路径")
	private String miniPage;

	public String getWebUrl() {
		return ShareInfoEnum.SHARE_FOOD.getWebUrl() + this.uuId;
	}

	public String getShareUrl() {
		return ShareInfoEnum.SHARE_FOOD.getShareUrl() + this.uuId;
	}

	public String getMiniPage() {
		return ShareInfoEnum.SHARE_FOOD.getMiniPage() + this.uuId;
	}

}